package com.wgts.wgts.mvp.presenter.imp;

import com.wgts.wgts.mvp.model.IWgtsMyTeamActivityModel;
import com.wgts.wgts.mvp.presenter.IWgtsMyTeamActivityPresenter;
import com.wgts.wgts.mvp.view.IWgtsMyTeamActivityView;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.resp.WgtsFansCountEntity;

import java.util.List;

public class WgtsMyTeamActivityPresenter implements IWgtsMyTeamActivityPresenter {

    private IWgtsMyTeamActivityView view;

    private IWgtsMyTeamActivityModel myTeamActivityModel;


    public WgtsMyTeamActivityPresenter(IWgtsMyTeamActivityView view, IWgtsMyTeamActivityModel myTeamActivityModel) {
        this.view = view;
        this.myTeamActivityModel = myTeamActivityModel;
    }

    @Override
    public void wgtsFansCount() {
        myTeamActivityModel.wgtsFansCount(new HttpResultSubscriber<List<WgtsFansCountEntity>>() {
            @Override
            public void onSuccess(List<WgtsFansCountEntity> wgtsFansCountEntity) {
                view.fansCount(wgtsFansCountEntity);
            }

            @Override
            public void _onError(int status, String msg) {

            }
        });
    }
}
